// components/Drawer/Drawer.module.scss

.overlay {
  background: rgba(0, 0, 0, 0.1);
  position: fixed;
  inset: 0;
  z-index: 100;
  backdrop-filter: blur(4px);

}

.content {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 300px;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 101;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  animation: slideIn 0.3s ease-out;

  :global(.dark) & {
    background-color: #1F2023;
  }
}

.content[data-state="closed"] {
  animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideOut {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(100%);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title {
  font-size: 20px;
  font-weight: bold;
}

.closeBtn {
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  color: #151515;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;

  &:hover {
    background: #F3F3F3;
  }

  :global(.dark) & {
    color: #fff;

    &:hover {
      background: #313234;
    }
  }
}

.trigger {
  padding: 0.5rem 1rem;
  background-color: #0070f3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.body {
  margin-top: 1rem;
  flex: 1;
  overflow-y: auto;
}